Fix tests
authorAleksey Kladov <aleksey.kladov@gmail.com>
Sun, 9 Jul 2017 10:31:42 +0000 (13:31 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Sun, 9 Jul 2017 10:31:42 +0000 (13:31 +0300)
tests/git.rs
tests/path.rs
tests/plugins.rs

index b58cef8eb0c23439857703791a24bed208cb8d37..c6fae519d20979b0fe8aa36235d24e1ee1dfdd1f 100644 (file)
@@ -1341,8 +1341,8 @@ fn git_dep_build_cmd() {
             build = "build.rs"
 
             [lib]
-
             name = "bar"
+            path = "src/bar.rs"
         "#)
         .file("bar/src/bar.rs.in", r#"
             pub fn gimme() -> i32 { 0 }
index 16335e2168a5e87cd7b2a0826af2a37681c66c50..bca1707fea50733b8544c2d1cf9bd694444b0df1 100644 (file)
@@ -535,12 +535,9 @@ fn error_message_for_missing_manifest() {
             [dependencies.bar]
 
             path = "src/bar"
-
-            [lib]
-
-            name = "foo"
         "#)
-       .file("src/bar/not-a-manifest", "");
+        .file("src/lib.rs", "")
+        .file("src/bar/not-a-manifest", "");
 
     assert_that(p.cargo_process("build"),
                 execs().with_status(101)
@@ -704,8 +701,8 @@ fn path_dep_build_cmd() {
             build = "build.rs"
 
             [lib]
-
             name = "bar"
+            path = "src/bar.rs"
         "#)
         .file("bar/build.rs", r#"
             use std::fs;
index bcc2f7aff4ceaf320b66a03068921b48ed3f5fee..8ee6ce8df984bb5e794f1cdc87cfabef44c21f67 100644 (file)
@@ -251,7 +251,6 @@ fn native_plugin_dependency_with_custom_ar_linker() {
             authors = []
 
             [lib]
-            name = "foo"
             plugin = true
         "#)
         .file("src/lib.rs", "");
@@ -263,13 +262,10 @@ fn native_plugin_dependency_with_custom_ar_linker() {
             version = "0.0.1"
             authors = []
 
-            [lib]
-            name = "bar"
-
             [dependencies.foo]
             path = "../foo"
         "#)
-        .file("src/lib", "")
+        .file("src/lib.rs", "")
         .file(".cargo/config", &format!(r#"
             [target.{}]
             ar = "nonexistent-ar"